import React, { Component } from 'react'

interface StateList {
  list: any[]
}

export default class index extends Component<any, any> {
  state: Readonly<StateList> = {
    list: [
      { id: 1, city: '北京' },
      { id: 2, city: '上海' },
    ],
  }
  render() {
    return (
      <div
        onClick={() => {
          this.state.list.splice(0, 1)
          console.log(this.state, 'state')
          // this.setState({})
        }}
      >
        Dashboard
      </div>
    )
  }
}
